#ifndef CALMETRICDATAUTIL_H
#define CALMETRICDATAUTIL_H

#include <vector>
#include <string>
#include <cstdint>

class CalMetricDataUtil {
private:
    static float totalDistance;
    static float totalPower;
    static float totalEnergy;
    static float totalOutput;
    static int totalRPM;
    static int rpmTimeCount;
    static float maxRPM;
    static int64_t startTime;
    static int64_t timeGap;
    static int64_t activeTime;
    static int64_t elapsedTime;
    static std::string res;

    static const std::string fileName;
    static const std::string fileNameSE;

    static int64_t lastUpdateTime;
    static int64_t cadenceZeroTime;

    static std::string parseHexStringToJson(const std::string& hexString);
    static std::string byteArrayToHexString(const std::vector<uint8_t>& byteArray);

public:
    static std::string cal(const std::vector<int>& ans);
};

#endif // CALMETRICDATAUTIL_H
